@import '../../css/colorVar.less';

.calendar {
  background: @calendar_bg;
  :global {
    .ant-picker-panel {
      border: 1px solid @calendar_border !important;
      background: @calendar_bg !important;
    }
    .ant-picker-panel .ant-picker-body th {
      text-align: center !important;
      padding: 0 !important;
      line-height: 49px !important;
      border-right: 1px solid @calendar_inner_border !important;
    }
    .ant-picker-panel .ant-picker-body th::before {
      content: '星期';
    }
    .ant-picker-panel .ant-picker-body th:last-child {
      border-right: 0 !important;
    }
    .ant-picker-calendar-header {
      display: none;
    }
    .ant-picker-panel .ant-picker-body td .ant-picker-calendar-date {
      text-align: left;
      border-top: 0;
      height: 210px;
      padding: 0;
      margin: 0;
    }
    .ant-picker-panel .ant-picker-body td .ant-picker-calendar-date .ant-picker-calendar-date-value {
      font-size: 20px;
      text-align: left;
      line-height: 30px;
      height: 30px;
      padding-left: 19px;
      //   color: @calendar_text;
      font-weight: 600;
    }
    .ant-picker-panel .ant-picker-body td {
      padding: 0;
      border: 1px solid @calendar_inner_border;
    }
    .ant-picker-cell-in-view {
      color: @calendar_text !important;
    }
    .ant-picker-panel .ant-picker-body .ant-picker-cell-selected {
      border: 2px solid @theme !important;
    }
    .ant-picker-content tr td:last-child {
      border-right: 0;
    }
    .ant-picker-content tr td:first-child {
      border-left: 0;
    }
    .ant-picker-content tbody tr:nth-child(5) td {
      border-bottom: 0;
    }
    .ant-picker-panel .ant-picker-body {
      padding: 0 !important;
    }
    .ant-picker-panel .ant-picker-body td .ant-picker-calendar-date .ant-picker-calendar-date-content {
      height: calc(~'100% - 31px');
      overflow-x: hidden;
    }
    .ant-picker-panel .ant-picker-body .ant-picker-cell-selected .ant-picker-calendar-date {
      background: @calendar_selected_bg;
    }

    .ant-picker-panel .ant-picker-cell-selected .ant-picker-calendar-date,
    .ant-picker-panel .ant-picker-cell-selected:hover .ant-picker-calendar-date,
    .ant-picker-panel .ant-picker-cell-selected .ant-picker-calendar-date-today,
    .ant-picker-panel .ant-picker-cell-selected:hover .ant-picker-calendar-date-today {
      background: @calendar_selected_bg !important;
    }
    .ant-picker-panel .ant-picker-cell-selected .ant-picker-calendar-date .ant-picker-calendar-date-value,
    .ant-picker-panel .ant-picker-cell-selected:hover .ant-picker-calendar-date .ant-picker-calendar-date-value,
    .ant-picker-panel .ant-picker-cell-selected .ant-picker-calendar-date-today .ant-picker-calendar-date-value,
    .ant-picker-panel .ant-picker-cell-selected:hover .ant-picker-calendar-date-today .ant-picker-calendar-date-value {
      color: @calendar_text !important;
    }
    .ant-picker-cell:hover:not(.ant-picker-cell-in-view) .ant-picker-cell-inner,
    .ant-picker-cell:hover:not(
        .ant-picker-cell-selected,
        .ant-picker-cell-range-start,
        .ant-picker-cell-range-end,
        .ant-picker-cell-range-hover-start,
        .ant-picker-cell-range-hover-end
      )
      .ant-picker-cell-inner {
      background: @calendar_td_hoverBg !important;
    }
  }
}
.dateFast {
  height: 34px;
  > div:first-child {
    position: absolute;
    width: calc(~'100% - 144px');
    background: @calendar_top_bg;
    height: 24px;
    line-height: 24px;
  }
}
.fastClick {
  display: table;
  position: absolute;
  right: 0;
  a {
    width: 20px;
    height: 24px;
    display: table-cell;
  }
  a:nth-child(1) {
    background: url('../../assets/busi/investmentCalendar/leftNo.png');
  }
  a:nth-child(3) {
    background: url('../../assets/busi/investmentCalendar/rightNo.png');
  }
  a:nth-child(1):hover {
    background: url('../../assets/busi/investmentCalendar/leftSelect.png');
  }
  a:nth-child(3):hover {
    background: url('../../assets/busi/investmentCalendar/rightSelect.png');
  }
  > span {
    display: table-cell;
    font-size: 14px;
    line-height: 24px;
    height: 24px;
    color: @text_auxiliary;
    padding: 0 10px;
  }
}
